

/* ==================
          徽章
 ==================== */

.tien-tag {
  font-size: 12px;
  vertical-align: middle;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0px 8px;
  height: 24px;
  font-family: Helvetica Neue, Helvetica, sans-serif;
}

.tien-tag:not([class*="bg"]):not([class*="line"]) {
  background-color: #f1f1f1;
}

.tien-tag[class*="line-"]::after {
  content: " ";
  width: 200%;
  height: 200%;
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid currentColor;
  transform: scale(0.5);
  transform-origin: 0 0;
  box-sizing: border-box;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.tien-tag.radius[class*="line"]::after {
  border-radius: 6px;
}

.tien-tag.round[class*="line"]::after {
  border-radius: 500px;
}

.tien-tag[class*="line-"]::after {
  border-radius: 0;
}

.tien-tag+.tien-tag {
  /*margin-left: 5px;*/
}

.tien-tag.sm {
  font-size: 10px;
  padding: 0px 6px;
  height: 16px;
}

.tien-capsule {
  display: inline-flex;
  vertical-align: middle;
}

.tien-capsule+.tien-capsule {
  margin-left: 5px;
}

.tien-capsule .tien-tag {
  margin: 0;
}

.tien-capsule .tien-tag[class*="line-"]:last-child::after {
  border-left: 0px solid transparent;
}

.tien-capsule .tien-tag[class*="line-"]:first-child::after {
  border-right: 0px solid transparent;
}

.tien-capsule.radius .tien-tag:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.tien-capsule.radius .tien-tag:last-child::after,
.tien-capsule.radius .tien-tag[class*="line-"] {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.tien-capsule.round .tien-tag:first-child {
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
  text-indent: 2px;
}

.tien-capsule.round .tien-tag:last-child::after,
.tien-capsule.round .tien-tag:last-child {
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  text-indent: -2px;
}

.tien-tag.badge,.tien-tag.tien-badge {
  border-radius: 100px;
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 10px;
  padding: 0px 5px;
  height: 14px;
  color: #fff;
}

.tien-tag.badge:not([class*="bg-"]) {
  background: #dd514c;
}

.tien-tag.tien-badge:not([class*="bg-"]) {
  background: #dd514c;
}

.tien-tag:empty:not([class*="icon"]) {
  padding: 0px;
  width: 8px;
  height: 8px;
  top: -2px;
  right: -2px;
}

.tien-tag[class*="icon"] {
  width: 16px;
  height: 16px;
  top: -2px;
  right: -2px;
}
